﻿//Dang ky app service de chia se du lieu giua cac controller voi nhau
app.factory('service', function () {
    return new SmatimeService();
});


function SmatimeService() {
    this._ext = [];
    //this.locationUrl = "http://115.79.32.40/:88/api";
    //this.locationUrl = "http://localhost:1339/api";
    this.locationUrl = "/api";

    

    _this = this;

    SmatimeService.prototype.getExt = function (key) {
        return _this._ext[key];
    }

    SmatimeService.prototype.setExt = function (key, value) {
        _this._ext[key] = value;
    }

}
